package com.dongdongshop.service.impl;

import com.dongdongshop.mapper.TbUserScoreMapper;
import com.dongdongshop.pojo.TbUserScore;
import com.dongdongshop.service.UserScoreService;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
@DubboService
public class UserScoreServiceimpl  implements UserScoreService {


    @Autowired
    private TbUserScoreMapper tsm;

    @Override
    public int addScore(TbUserScore ts) {
        String userid = ts.getUserid();
        tsm.selectbyuserid(userid);
        return tsm.insertSelective(ts);
    }
}
